#ifndef RP2SKELETON_H
#define RP2SKELETON_H


#include "Rp2Bone.h"

namespace Rp2
{

class Skeleton
{
public:
	Skeleton();
	~Skeleton();

	Bone* CreateBone(std::string& rkBoneName, int iBoneID, int iParentID);

	std::vector<Bone*>& GetBones();
	Bone* GetBone(std::string& rkBoneName);
	Bone* GetBone(int iBoneID);
	// construct bone hierarchy
	void ConstructHierarchy();

protected:
	std::vector<Bone*> m_kBones;
	std::vector<int> m_kRootIndices;
};

#include "Rp2Skeleton.inl"

}

#endif